export function aliyunOss() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "code": 200,
      "message": "操作成功",
      "data": {
        "accessKeyId": "LTAI4FnBaUykGroy7VQKHKBZ",
        "policy": "eyJleHBpcmF0aW9uIjoiMjAyMC0wMi0yNFQwODo1MTowMS4xNjJaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjBdLFsic3RhcnRzLXdpdGgiLCIka2V5IiwibWFsbC9pbWFnZXMvMjAyMDAyMjQiXV19",
        "signature": "3On3S7ylb1uGPhg1tp6hYL73PzGyDl",
        "dir": "test/images/",
        "host": "http://oss-cn-beijing.aliyuncs.com",
        "callback": "eyJjYWxsYmFja0JvZHlUeXBlIjoiYXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVkIiwiY2FsbGJhY2tVcmwiOiJodHRwOi8vMzkuOTguMTkwLjEyODo4MDgwL2FsaXl1bi9vc3MvY2FsbGJhY2siLCJjYWxsYmFja0JvZHkiOiJmaWxlbmFtZT0ke29iamVjdH0mc2l6ZT0ke3NpemV9Jm1pbWVUeXBlPSR7bWltZVR5cGV9JmhlaWdodD0ke2ltYWdlSW5mby5oZWlnaHR9JndpZHRoPSR7aW1hZ2VJbmZvLndpZHRofSJ9"
      }
    }
  }
  return {
    url: 'upload/aliyunOss',
    type: 'post',
    data: data
  }
}

export function local(){
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "code": 200,
      "message": "操作成功",
      "data": {
        "url": "http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg",
      }
    }
  }
  return {
    url: 'upload/local',
    type: 'post',
    data: data
  }
}
